package com.lhj.demo.simple.service.impl;

import com.lhj.demo.simple.domain.dto.QueryDTO;
import com.lhj.demo.simple.service.AnnotationService;
import org.springframework.stereotype.Service;

/**
 * @author hj.luo
 * @Date 2023-07-19 10:01
 * @descripition 注解方法测试
 * @version: 1.0
 */
@Service
public class AnnotationServiceImpl implements AnnotationService {
    @Override
    public int run() {
        System.out.println(Math.random() * 10);
        return 0;
    }

    @Override
    public int run(QueryDTO queryDTO) {
        return (int) (Math.random() * 10);
    }
}
